package com.hello.service;

import com.hello.dto.PLikeDTO;
import com.hello.entity.PLikes;

import java.util.List;

public interface IPLikesService {
    List<PLikes> getNewPlikes(Long user_id);
    Long getLikesCount(Long user_id, Integer post_order);
    boolean haveLiked(Long user_id, Integer post_order, Long liker_id);

    /**
     *我赞过的帖子
     * @param user_id
     * @return
     */
    List<PLikes> getMyPlikes(Long user_id);
    boolean addPLikes(PLikeDTO pLikeDTO);

    /**
     * 根据当前用户id和postorder，取消点赞
     * @param user_id
     * @param post_order
     * @return
     */
    boolean deletePLikes(PLikeDTO pLikeDTO);
}
